.tiptap {
  /* task list */
  ul[data-type="taskList"] {
    list-style: none;
    margin-left: 0;
    padding: 0;

    &.is-empty::before {
      margin-left: 24px;
    }

    li {
      align-items: flex-start;
      display: flex;
      margin-bottom: 0.25rem;

      > label {
        flex: 0 0 auto;
        margin-right: 6px;
        user-select: none;
        position: relative;
        display: inline-flex;
        align-items: center;
      }

      > div {
        flex: 1 1 auto;
        margin-top: 0;
      }
    }

    input[type="checkbox"] {
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      border: 1.5px solid #000000;
      margin: 0;
      transition: all 0.2s ease;
      position: relative;
      margin-top: 3px;

      &:checked {
        background-color: #3b82f6;
        border-color: #3b82f6;
      }

      &:checked::after {
        content: "";
        position: absolute;
        left: 4.5px;
        top: 1px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
      }

      &:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
      }

      &:hover:not(:checked) {
        border-color: #9ca3af;
      }
    }

    ul[data-type="taskList"] {
      margin: 0;

      li {
        margin-top: 0.25rem;
      }
    }
  }
}
